<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddGetExpiredTimeCouponRuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('coupon_rule', function (Blueprint $table) {
            //
            $table->timestamp('get_expired_time')->nullable()->comment('领取截止时间，为null时无期限领取，有效期为领到劵的N天开始N天内有效的类型时有效');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('coupon_rule', function (Blueprint $table) {
            //
            $table->dropColumn('get_expired_time');
        });
    }
}
